package org.sgx.gwtsjcl.client;

import com.google.gwt.core.client.JavaScriptObject;
/**
 * Bit array encoders and decoders. 
 * @author sg
 *
 */
public class Codec extends JavaScriptObject {
protected Codec(){}
/**
 * Base64 encoding/decoding 
 * @return
 */
public native final CodecBase64 base64() /*-{
return this["base64"]; 
}-*/;

/**
 * Base64 encoding/decoding 
 * @param val
 * @return this - for setter chaining
 */
public native final Codec base64(CodecBase64 val) /*-{
this["base64"] = val; 
return this; 
}-*/;
/**
 * Hexadecimal 
 * @return
 */
public native final CodecHex hex() /*-{
return this["hex"]; 
}-*/;

/**
 * Hexadecimal 
 * @param val
 * @return this - for setter chaining
 */
public native final Codec hex(CodecHex val) /*-{
this["hex"] = val; 
return this; 
}-*/;

/**
 * UTF-8 strings 
 * @return
 */
public native final CodecUtf8String utf8String() /*-{
return this["utf8String"]; 
}-*/;

/**
 * UTF-8 strings 
 * @param val
 * @return this - for setter chaining
 */
public native final Codec utf8String(CodecUtf8String val) /*-{
this["utf8String"] = val; 
return this; 
}-*/;
}
